Optimal. Leaf size=75 \[ \frac{2 (a A+3 b B) \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )}{3 d}+\frac{2 (a B+A b) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a A \sin (c+d x) \sqrt{\cos (c+d x)}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.193081, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194, Rules used = {2954, 2968, 3023, 2748, 2641, 2639} \[ \frac{2 (a A+3 b B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 d}+\frac{2 (a B+A b) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 a A \sin (c+d x) \sqrt{\cos (c+d x)}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2954
Rule 2968
Rule 3023
Rule 2748
Rule 2641
Rule 2639
Rubi steps
\begin{align*} \int \cos ^{\frac{3}{2}}(c+d x) (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx &=\int \frac{(b+a \cos (c+d x)) (B+A \cos (c+d x))}{\sqrt{\cos (c+d x)}} \, dx\\ &=\int \frac{b B+(A b+a B) \cos (c+d x)+a A \cos ^2(c+d x)}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 a A \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d}+\frac{2}{3} \int \frac{\frac{1}{2} (a A+3 b B)+\frac{3}{2} (A b+a B) \cos (c+d x)}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 a A \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d}+(A b+a B) \int \sqrt{\cos (c+d x)} \, dx+\frac{1}{3} (a A+3 b B) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{2 (A b+a B) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d}+\frac{2 (a A+3 b B) F\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{3 d}+\frac{2 a A \sqrt{\cos (c+d x)} \sin (c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.25861, size = 67, normalized size = 0.89 \[ \frac{2 \left ((a A+3 b B) \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )+3 (a B+A b) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )+a A \sin (c+d x) \sqrt{\cos (c+d x)}\right )}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 1.946, size = 326, normalized size = 4.4 \begin{align*} -{\frac{2}{3\,d}\sqrt{ \left ( 2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1 \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}} \left ( 4\,Aa\cos \left ( 1/2\,dx+c/2 \right ) \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+Aa\sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticF} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) ,\sqrt{2} \right ) -3\,A\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) b-2\,Aa \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}\cos \left ( 1/2\,dx+c/2 \right ) +3\,Bb\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticF} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) -3\,B\sqrt{ \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}\sqrt{2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}{\it EllipticE} \left ( \cos \left ( 1/2\,dx+c/2 \right ) ,\sqrt{2} \right ) a \right ){\frac{1}{\sqrt{-2\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}}} \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sec \left (d x + c\right ) + A\right )}{\left (b \sec \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (B b \cos \left (d x + c\right ) \sec \left (d x + c\right )^{2} + A a \cos \left (d x + c\right ) +{\left (B a + A b\right )} \cos \left (d x + c\right ) \sec \left (d x + c\right )\right )} \sqrt{\cos \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \sec \left (d x + c\right ) + A\right )}{\left (b \sec \left (d x + c\right ) + a\right )} \cos \left (d x + c\right )^{\frac{3}{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]